<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"  %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <sec:authorize access="isAuthenticated()">
    <form action="<c:url value="/logout"/>"method="post" >
       <spring:message code="content.logoutform.hello" text="default text" /> <sec:authentication property="principal.username"/><br>
      <input value=" <spring:message code="content.button.Logout" text="default text" /> " type="submit"/>
    </form>
    </sec:authorize>